# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-jiemian-0816-02.py
    ======================
    @descript: 
    @copyright:nnz
    @author:dln
    @date: 2021/8/16 15:40
    @version:v1.0
'''
from PySide2.QtWidgets import QApplication, QMainWindow, QPlainTextEdit, QPushButton, QMessageBox


class QGUI(QMainWindow):
    def __init__(self):
        super(QGUI,self).__init__()
        self.resize(600,500)
        self.move(500,400)
        self.setWindowTitle('薪资统计')

        self.v_text=QPlainTextEdit(self)
        self.v_text.resize(300,450)
        self.v_text.move(10,10)

    #设计按钮
        self.v_button=QPushButton(self)
        self.v_button.move(400,160)
        self.v_button.setText('统计')
        #给按钮绑定一个事件
        self.v_button.clicked.connect(self.method_button_click)
        pass
    def method_button_click(self):
        QMessageBox.about(self, '单击结果', '按钮被单击！')
        pass

    pass